package com.gdou.mapper;

import com.gdou.dto.AccountDto;
import com.gdou.model.Account;

import java.util.List;

public interface AccountMapper {

    List<Account> selectAll();

    int selectHasAccountByUsername(String username);

    Account selectAccountByLogin(AccountDto accountDto);

    int updateAccountImgUtl(Long accountId, String imgUrl);

    int updateAccountStatus(Long id, Integer status);

    int updateRestAccountPwd(Long id, String pwd);

    int deleteById(Long id);

    int insertAccount(String username, String pwd);

    String selectPwdById(Long id);
}
